package cn.platform.mapper;

import cn.platform.entity.HarmonyTeacherClass;
import cn.platform.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface HarmonyTeacherMapper {
    /**
     * 根据老师id查询老师信息
     *
     * @param id 老师id
     * @return AResponse res 老师的信息
     *
     * @author jyz
     */
    @Select("select * from jxt_teachers where id=#{id}")
    List<Teacher> getRoleMessage(Integer id);

    /**
     * 根据教师ID查询所教班级列表
     * @param teacherId 教师ID
     * @return 班级列表
     */
    List<HarmonyTeacherClass> getTeacherClass(Integer teacherId);
}
